// Package grpc
// Created by GoLand
// @User: lenora
// @Date: 2024/8/22
// @Time: 15:08

package grpc

import (
	"context"
	"math/rand"
)

type UserServer struct {
	UnimplementedUserServiceServer
}

func (s *UserServer) GetById(ctx context.Context, req *GetByIdReq) (*GetByIdResp, error) {
	return &GetByIdResp{
		User: &User{
			Id:   rand.Int63n(5),
			Name: "lenora",
		},
	}, nil
}
